package vn.personal.anhht.bloback12.util;

import java.util.Locale;

import android.content.Context;
import android.content.res.Configuration;

public class LocalizationUtil {
	public static void setLanguage(Context context, String language){
		Locale place = new Locale(language);
        Locale.setDefault(place);
        Configuration config = new Configuration();
        config.locale = place;
        context.getResources().updateConfiguration(config, context.getResources().getDisplayMetrics());
	}
	public static void setupLanguage(Context context) {
		// TODO Auto-generated method stub
//		CallBlockShareHelper.getSettingHelper(context.getApplicationContext());
//		if (CallBlockShareHelper.isEnglish) {
//			LocalizationUtil.setLanguage(context.getApplicationContext(), "en");
//		} else {
//			LocalizationUtil.setLanguage(context, "vi");
//		}
	}
}
